package com.lxg.service.adminService;

import com.lxg.pojo.User;
import org.apache.ibatis.annotations.Delete;

import java.util.ArrayList;

public interface AdminUserService {

    /**
     * 查询全部用户
     * @return
     */
    public ArrayList<User> getAllUser();

    /**
     * 根据uid模糊查询用户
     * @param uid
     * @return
     */


    /**
     * 根据sno查询用户
     * @param sno
     * @return
     */
    public User getUserBySno(String sno);

    /**
     * 根据name模糊查询用户
     * @param name
     * @return
     */
    public ArrayList<User> getAllLikeUserByName(String name);


    public ArrayList<User> getAllLikeUserByUserName(String username);

    /**
     * 根据uid删除一个用户
     * @param uid
     */
    public boolean deleteUserByUid(Integer uid);



    //查询用户数量
    public Integer getUsersNum();


    public boolean addUser(User user);


    public boolean updateUser(String username,String password,String name,String sno,String grade,String email,String phone,Integer uid);
}
